package com.yangpizhu.gulimall.product;

import com.yangpizhu.api.config.DefaultFeignConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 商品服务启动类
 * @author yangpizhu
 */
@EnableFeignClients(
        basePackages = "com.yangpizhu.api.client", // OpenFeign 客户端扫描包的路径
        defaultConfiguration = DefaultFeignConfig.class // OpenFeign 默认配置
)
@MapperScan(basePackages = "com.yangpizhu.gulimall.product.dao")
@SpringBootApplication
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
